$(function(){

    //右侧
    var n = new Vue({
        el: '#news-information',
        data:{
            //热门搜索
            hotList:[
                {name:'比特币',},
                {name:'数字资产',},
                {name:'支付',},
                {name:'区块链',},
                {name:'银行',},
                {name:'价格',},
                {name:'去中心化',},
                {name:'中本聪',},
                {name:'去中心化',},
                {name:'挖矿',},
                {name:'监管',},
                {name:'金融',},
            ],
            loveBlock: [],

        },
        methods:{
            toHotSearch: function(event){
                var searchText = this.hotList[event.currentTarget.getAttribute('value')].name;
                // searchBox.search(searchText);
                // $('.search-content').val(searchText);
                location.href = 'search.html?content='+encodeURI(encodeURI(searchText))+'&searchType=all';
            },

        },
        mounted:function(){
            this.$nextTick(function(){

                //热门搜索关键字查询
                var data = {element:n.hotList }
                getHotWord(data);

            });
        }
    });




});